home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / DRAW.SCR < prev    next >
Text File  |  1991-12-29  |  2KB  |  45 lines

  1. .pg wi full clr
  2.     COMMAND NAME: DrawLine
  3.  
  4.     /DRAW,{V|H},{{Row}|{Col}},{Start},{End}[,{Speed}[,{Character}]]
  5. /cw
  6.     Draw a vertical or horizontal line on the screen using
  7.     »cy«{Character}»#«.
  8.  
  9.     »cy«{V|H}»#«               »ye«V»#« = vertical line, »ye«H»#« = Horizontal line.
  10.     »cy«{{Row}|{Col}}»#«       The »ye«Row»#« (horizontal line) or »ye«Column»#«
  11.                         (vertical line) at which the line will
  12.                         be drawn.
  13.     »cy«{Start}»#«             The starting column or row for the line.
  14.     »cy«{End}»#«               The ending row or column for the line.
  15.     »cy«{Speed}»#«             The speed at which the line will be
  16.                         drawn. A higher number represents a
  17.                         slower speed.
  18.     »cy«{Character}»#«         The character with which the line will
  19.                         be drawn.
  20. .pg clr
  21.     All »ye«rows»#«/»ye«columns»#« are checked for validity.
  22.  
  23.     If the speed is not specified or is zero then the line will
  24.     be drawn at »wh«full speed»#«.
  25.  
  26.     If no character is specified, then a vertical bar (»cy«ASCII
  27.     179»#« "»ye«│»#«") will be used for vertical lines and a horizontal
  28.     bar (»cy«ASCII 196»#« "»ye«─»#«") will be used for horizontal lines.
  29.  
  30.     Variables appearing in all tokens are expanded.
  31.  
  32.     If »cy«{end}»#« is greater than »cy«{start}»#« then the line will be drawn
  33.     from »wh«right to left»#« (horizontal) or »wh«bottom to top»#« (vertical).
  34. .pg clr
  35.     Here are some »%t«/DRAW»#« commands and their resulting lines:
  36. .reset ye
  37. |/DRAW H 5 10 50
  38. .re
  39. |/DRAW V 40 3 10
  40. .cy
  41. |/DRAW H 10 75 3 50 *
  42. .ma
  43. |/DRAW V 50 11 4 75 +
  44. /ENDEXEC CLEAR
  45.